import styles from "./DeletePost.module.css";
import { type Post, useDeletePostMutation } from "../../app/services/posts";



export const DeletePost = () => {
    const [deletePost, { isLoading: isDeleting }] = useDeletePostMutation()
    const id = 'post-1'
  return (
    <div className={styles.container}>
      <button onClick={() => deletePost(id).then(() => console.log('删除成功'))}> delete id {id}</button>
    </div>
  );
};
